<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{Title} (List) </title>
<link rel="stylesheet" href="../../css/mem_main.css" type="text/css">
<script language="JavaScript" src="/inc/admin_envirset.js"></script>
<script language="JavaScript">
<!--
strRowClassName = "clef";
var intTotalNo = {ShowTNo};
var strNoSelectTip = "No Select";

function SelectAll(){
	with(document.ListItemForm){
		for(var i = 0; i < intTotalNo; i++)document.ListItemForm["ID["+i+"]"].checked =true;
	}
}

function UnSelectAll(){
	with(document.ListItemForm){
		for(var i = 0; i < intTotalNo; i++)document.ListItemForm["ID["+i+"]"].checked = false;
	}
}

function SelectDel(){
	var strID = "", arrID = new Array(), j = 0;
	with(document.ListItemForm){
		for(var i = 0; i < intTotalNo; i++){
			if(document.ListItemForm["ID["+i+"]"].checked){
				arrID[j] = document.ListItemForm["ID["+i+"]"].value;
				j++;
			}
		}
		strID = arrID.join(",");
	}
	if(strID == ""){
		alert(strNoSelectTip);
		return;
	}
		
	if(confirm("{_SureDel}")){
		with(document.DelForm){
			ID.value = strID;
			submit();
		}
	}
}

function SelectEdit(){
	var strID = "", arrID = new Array(), j = 0;
	with(document.ListItemForm){
		for(var i = 0; i < intTotalNo; i++){
			if(document.ListItemForm["ID["+i+"]"].checked){
				arrID[j] = document.ListItemForm["ID["+i+"]"].value;
				j++;
			}
		}
		strID = arrID.join(",");
	}
	if(strID == ""){
		alert(strNoSelectTip);
		return;
	}

	with(document.EditForm){
		ID.value = strID;
		submit();
	}
}

function Page(intPage){
	with(document.ListForm){
		Page.value = intPage;
		submit();
	}
}
function ChangePage(){
	with(document.ListForm){
		Page.value = document.PageJump.pageview.value;
		submit();
	}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<form name="ListItemForm">
<table width="770" border="0" cellspacing="0" cellpadding="0" class="cmti">
  <tr> 
    <td>{Title}:  {_Sum}: 
      <select onChange="Page(this.value)">
        {PageSelectOpion}
      </select>
      /{intTotalPage}{_Page} -- 
      <input type="button" value="{_Add}" class="zabutton" onClick="location.href='index.php?op=Add'">
      <input type="button" value="{_List}" class="zabutton" onClick="location.href='index.php?op=Lists'">
      <input type="button" value="{_Search}" class="zabutton" onClick="location.href='index.php?op=Search'">
    </td>
  </tr>
</table>

<div class="ctabdv"> 
  <table width="610" border="0" cellspacing="1" cellpadding="0" class="ctab">
    <tr class="ctiga">
      <td width="42">&nbsp;</td>
      <td width="42">{ID}</td>
      <td width="60">{LType}</td>
      <td width="80">{BetType}</td>
      <td width="80">{Apoint}</td>
	  <td width="100">A-Line</td>
	  <td width="100">B-Line</td>
	  <td width="100">C-Line</td>
    </tr>
<!-- @ Content Start @ //-->
    <tr class="clef">
      <td align="center"><input type="checkbox" name="ID[{ShowNo}]" id="SdID[{ShowNo}]" value="{ShowID}" /></td>
      <td align="center">{ShowID}</td>
      <td>{ShowLType}</td>
      <td>{ShowBetType}</td>
	  <td>{ShowApoint}</td>
      <td>{ShowALine}</td>
	  <td>{ShowBLine}</td>
	  <td>{ShowCLine}</td>
    </tr>
<!-- @ Content End @ //-->
    <tr class="cmto">
      <td colspan="4" align="left"><a href="javascript:SelectAll()">All</a>
      &nbsp;-&nbsp;<a href="javascript:UnSelectAll()">Un All</a>
      &nbsp;-&nbsp;<a href="javascript:SelectEdit()">{_Edit}</a>
      &nbsp;-&nbsp;<a href="javascript:SelectDel()">{_Del}</a>
      </td>
      <td colspan="4">{_Sum} {intTotal} {_No}</td>
    </tr>
  </table>
</div>
</form>

<form method="Get" Action="index.php" name="DelForm">
	<input type="hidden" name="op" value="Del">
	<input type="hidden" name="ID" value="">
	<input type="hidden" name="Page" value="{intPageNow}">
</form>

<form method="Get" Action="index.php" name="EditForm">
	<input type="hidden" name="op" value="Edit">
	<input type="hidden" name="ID" value="">
	<input type="hidden" name="Page" value="{intPageNow}">
</form>

<form method="Get" Action="index.php" name="ListForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="totalpage" value="{intTotalPage}">
	<input type="hidden" name="Page" value="{intPageNow}">
</form>
</body>
</html>
